
package org.springframework.core.io.buffer;

import java.nio.ByteBuffer;

public interface DataBufferFactory {

	DataBuffer allocateBuffer();

	DataBuffer allocateBuffer(int initialCapacity);

	DataBuffer wrap(ByteBuffer byteBuffer);

	DataBuffer wrap(byte[] bytes);
}
